package com.lmq.chapter01;

public class ShowProperties {
    public static void main(String[] args) {
        System.getProperties().list(System.out);
        System.out.println(System.getProperty("user.name"));
        System.out.println(
                System.getProperty("java.library.path")
        );
    }
}
/* Output
-- listing properties --
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=D:\program\JDKPRO\jre\bin
java.vm.version=25.40-b25
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
path.separator=;
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.script=
user.country=CN
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=
java.vm.specification.name=Java Virtual Machine Specification
user.dir=D:\javaproject\learning-on-java8
java.runtime.version=1.8.0_40-b25
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=D:\program\JDKPRO\jre\lib\endorsed
os.arch=amd64
java.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\
line.separator=

java.vm.specification.vendor=Oracle Corporation
user.variant=
os.name=Windows 8.1
sun.jnu.encoding=GBK
java.library.path=D:\program\JDKPRO\bin;C:\Windows\Sun\...
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=6.3
user.home=C:\Users\Administrator
user.timezone=Asia/Shanghai
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=UTF-8
java.specification.version=1.8
user.name=Administrator
java.class.path=D:\program\JDKPRO\jre\lib\charsets.ja...
java.vm.specification.version=1.8
sun.arch.data.model=64
java.home=D:\program\JDKPRO\jre
sun.java.command=com.lmq.chapter01.ShowProperties
java.specification.vendor=Oracle Corporation
user.language=zh
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.8.0_40
java.ext.dirs=D:\program\JDKPRO\jre\lib\ext;C:\Wind...
sun.boot.class.path=D:\program\JDKPRO\jre\lib\resources.j...
java.vendor=Oracle Corporation
file.separator=\
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.desktop=windows
sun.cpu.isalist=amd64
Administrator
D:\program\JDKPRO\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\program\pythonprogram;D:\program\pythonprogram\Scripts;D:\wg\bin;D:\cons;D:\cons\Scripts;D:\Program Files\nodejs\;D:\Program Files\nodejs;D:\SQL\mysql-5.7.33-winx64\bin;D:\Program Files\Git\cmd;D:\program\JDKPRO\bin;D:\program\JDKPRO\jre\bin;D:\MAVENHOME\apache-maven-3.8.1\bin\;C:\Program Files\NVIDIA Corporation\NVSMI;D:\texlive\2021\bin\win32;D:\hadoop-2.7.1\bin;D:\Python27;D:\Python27\Scripts;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm;D:\Programs\Microsoft VS Code\bin;D:\Program Files\JetBrains\PIDEA\bin;;.

 */
